package com.smartfast4j.springboot.config.demo.controller;

import com.smartfast4j.springboot.config.demo.bean.ConfigBean;
import com.smartfast4j.springboot.config.demo.bean.SFtpConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by gacl on 2017/11/17.
 */
@RestController
public class SysConfigController {

    @Autowired
    private ConfigBean configBean;

    @Autowired
    private SFtpConfig sFtpConfig;

    @RequestMapping("/config")
    public String config(){
        return configBean.toString();
    }

    @RequestMapping("/sFtpConfig")
    public String sFtpConfig(){
        return sFtpConfig.toString();
    }
}
